import Http from '../http';

// 分页查询登录日志
export const queryLimit = function(queryWhere: any) {
    return Http.post('/sysLoginInfor/queryLimit', queryWhere)
}

// 根据ID查询单条登录日志
export const queryOne = function(id: string) {
    return Http.get(`/sysLoginInfor/queryOne/${id}`)
}

// 删除登录日志
export const delLoginLog = function(idList: string[]) {
    return Http.delete('/sysLoginInfor/dels', { idList })
}

// 新增登录日志
export const saveLoginLog = function(loginInfo: any) {
    return Http.post('/sysLoginInfor/save', loginInfo)
}

// 修改登录日志
export const updateLoginLog = function(loginInfo: any) {
    return Http.put('/sysLoginInfor/update', loginInfo)
}